package edu.njfu.activitybootmode

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button

class StandardActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_standard)
        Log.d("StandardActivity",this.toString())
        Log.d("StandActivity","TaskId is $taskId")
        val button=findViewById<Button>(R.id.button)
        button.setOnClickListener {
            val intent = Intent(this,StandardActivity::class.java)
            startActivity(intent)
        }
        val button4=findViewById<Button>(R.id.button4)
        button4.setOnClickListener {
            val intent = Intent(this,SingleTopActivity::class.java)
            startActivity(intent)
        }
        val button5=findViewById<Button>(R.id.button5)
        button5.setOnClickListener {
            val intent = Intent(this,SingleTaskActivity::class.java)
            startActivity(intent)
        }
        val button8=findViewById<Button>(R.id.button8)
        button8.setOnClickListener {
            val intent = Intent(this,SingleInstanceActivity::class.java)
            startActivity(intent)
        }
    }
}
